cmake_minimum_required(VERSION 3.10)

# 项目名称和版本
project(MyLibrary VERSION 1.0)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 包含头文件目录
include_directories(include)

# 添加库
add_library(my_library SHARED src/my_library.cpp)

# 指定库的安装路径
install(TARGETS my_library DESTINATION lib)
install(FILES include/my_library.h DESTINATION include)

